from django.contrib.auth.models import AbstractUser
from django.db import models


# Create your models here.
# 创建自定义用户模型类，继承django自有的用户模型类AbstractUser
class User(AbstractUser):
    mobile = models.CharField(max_length=11,unique=True)
    class Meta:
        db_table = 'tb_user'